/*
 * @Author: wujiedong
 * @Date: 2020-09-20 15:25:29
 * @LastEditTime: 2021-10-07 09:55:16
 * @LastEditors: Please set LastEditors
 * @Description: 项目入口
 * @FilePath: \common-vue\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './kStore'
import '@styles/reset.css'
import '@styles/variable.less'
import '@styles/common.less'
import '@icons'
import { create } from '@utils/create.js'
import Notice from '@components/notice'

Vue.config.productionTip = false
Vue.prototype.$notice = function(props) {
  const notice = create(Notice, props)
  notice.show()
}

new Vue({
  router, // 混入挂载$router到Vue原型上,之后所有组件都可以使用$router变量
  store,
  render: h => h(App)
}).$mount('#app')
